package com.slorgs.business.service

import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.baomidou.mybatisplus.extension.service.IService
import com.slorgs.infrastructure.dto.ResponseDTO
import com.slorgs.infrastructure.dto.UserDTO
import com.slorgs.infrastructure.model.User

interface UserService : IService<User> {
    /**
     * 注册/修改用户
     */
    fun register(user: User?): ResponseDTO?

    /**
     * 管理控制台登陆
     */
    fun login(user: UserDTO?): ResponseDTO?

    /**
     * 门户登陆
     */
    fun portalLogin(user: UserDTO?, isPassword: Boolean): ResponseDTO?

    /**
     * 用户列表
     */
    fun userList(user: User?, page: Page<*>?): ResponseDTO?

    fun serverAuthorize(onlyMark: String?): ResponseDTO?

    fun commitAuth(onlyMark: String?): String?

    fun checkAuth(onlyMark: String?): ResponseDTO?
}